package com.smartleanx.module.hrm.eums.employee;

import com.smartleanx.framework.common.core.IntArrayValuable;
import com.smartleanx.module.system.enums.errorcode.ErrorCodeTypeEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * 教学方式
 *
 * @author tengcj
 * @since 2024/5/21
 */
@Getter
@RequiredArgsConstructor
public enum TeachingMethodEnum implements IntArrayValuable {

    FULL_TIME(1, "全日制"),
    ADULT_EDUCATION(2, "成人教育"),
    REMOTE_EDUCATION(3, "远程教育"),
    SELF_LEARNING(4, "自学考试"),
    OTHER(5, "其他");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(TeachingMethodEnum::getCode).toArray();

    private final Integer code;

    private final String desc;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
